//引入express框架
const express = require('express');
//创建模块化路由
const home = express.Router();

//文章首页
home.get('/', require('./home/index.js'));

//文章详情页
home.get('/article', require('./home/article.js'));

//文章评论功能
home.post('/comment', require('./home/comment.js'));
module.exports = home;